<div class="col-sm-12 col-md-12">

     <div class="row">
        <div class="col-sm-12 col-md-12">
            <form class="form-custom clearfix">
                <div class="col-sm-3 col-md-3">
                    <label>需求名称</label>
                    <input class="form-control" type="text" ng-model="params.requName"/>
                </div>
                <div class="col-sm-3 col-md-3">
                    <label>申请日期</label>
                    <div datetimepicker range start="params.applDate" end="params.applDate_"></div>
                </div>
                <div class="col-sm-3 col-md-3">
                    <label>流程类型</label>
                    <select ng-model="params.flowType" select2 ng-options="item.flowType as item.Name for item in flowTypeList"></select>
                </div>
                <div class="col-sm-3 col-md-3">
                    <label>&nbsp;</label>
                    <button class="btn btn-custom" type="button" ng-click="refresh('first',true)">查询</button>
                </div>
            </form>
        </div>
    </div>

    <table class="table table-striped table-bordered table-condensed index-center  table-costom">
        <thead>
        <tr>
            <th>序号</th>
            <th>需求编号</th>
            <th>流程类型</th>
            <th>需求名称</th>
            <th>需求类型</th>
            <th>申请人部门</th>
            <th>申请人</th>
            <th>申请时间</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr class="rowlink" ng-repeat="item in limitArr">
				 <td>{{$index+1}}</td>
				 <td>{{item.requCode}}</td>
				 <td>{{item.flowType | DM_flow_type}}</td>
                 <td>{{item.requName}}</td>
                 <td>{{item.requType | DM_requ_type}}</td>
                 <td>{{item.applDept}}</td>
                 <td>{{item.applPer}}</td>
                 <td>{{item.applDate | date:'yyyy-MM-dd'}}</td>
                 <td>{{item.approState | DM_appro_state}}</td>
            <td>
                <a href="javascript:"  data-toggle="modal" data-target="#affirm" ng-click="toDetail(copy(item))" ng-show="item.approState == 5 || item.approState =='d' || item.approState == 'g'">接收</a>
                <a href="javascript:"  data-toggle="modal" data-target="#stepDialog" ng-click="toFollow(copy(item))">跟踪</a>
            </td>
        </tr>
        </tbody>
    </table>
            <div data-remote-paging="pager" 
				data-refresh="refresh" 
				data-current="current" 
				data-total="total" 
				data-data="limitArr"
				data-limit="limit"
				data-params="params"
			></div>
    </div>

<!-- 需求确认对话框 -->
<div class="modal fade" id="affirm" tabindex="-1" role="dialog" aria-hidden="true">
<form class="form-horizontal" name="QR" novalidate="novalidate">
    <div class="modal-dialog" style="width: 700px;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">需求确认审核</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-sm-12 col-md-12">
							<div class="form-group">
                                <label class="col-lg-2 control-label">流程类型</label>

                                <div class="col-lg-10">
                                    <p class="form-control-static">{{demand.flowType | DM_flow_type}}</p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">需求编号</label>

                                <div class="col-lg-10">
                                    <p class="form-control-static">{{demand.requCode}}</p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">需求名称</label>

                                <div class="col-lg-10">
                                    <p class="form-control-static">{{demand.requName}}</p>
                                </div>
                            </div>
                            <div class="form-group" ng-if="demand.requType=='2' || demand.requType=='3'">
                                <label class="col-lg-2 control-label">提出部门</label>

                                <div class="col-lg-10">
                                    <p class="form-control-static">{{demand.applDept}}</p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">提出人</label>

                                <div class="col-lg-10">
                                    <p class="form-control-static">{{demand.applPer}}</p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">需求类型</label>
                                
                                <div class="col-lg-10">
                                	<p class="form-control-static">{{demand.requType | DM_requ_type}}</p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">申请时间</label>

                                <div class="col-lg-10">
                                    <p class="form-control-static">{{demand.applDate | date:'yyyy-MM-dd'}}</p>
                                </div>
                            </div>
                            <div class="form-group" ng-if="demand.requType =='1'">
                                <label class="col-lg-2 control-label">安全级别</label>

                                <div class="col-lg-10">
                                    <p class="form-control-static">{{demand.securityLev | DM_security_lev}}</p>
                                </div>
                            </div>
                            <div class="form-group" ng-if="demand.requType =='1'">
                                <label class="col-lg-2 control-label">紧急程度</label>

                                <div class="col-lg-10">
                                	<p class="form-control-static">{{demand.emergencyLev | DM_emergency_lev}}</p>
                                </div>
                            </div>
                            <div class="form-group" ng-if="demand.approState == '2' || demand.approState == '9'" >
                                <label class="col-lg-2 control-label">技术联系人</label>

                                <div class="col-lg-10">
                                    <p class="form-control-static">{{demand.userName}}</p>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">数据传送方式</label>
                                <div class="col-lg-10" >
                                    <label class="radio-inline"><input type="radio" ng-model="demand.dataPassType" name="class3"  value="1" required>平台页面下载</label>
                                    <label class="radio-inline"><input type="radio" ng-model="demand.dataPassType" name="class3"  value="2" required>存储介质传送</label>
                                    <label class="radio-inline"><input type="radio" ng-model="demand.dataPassType" name="class3"  value="3" required>ftp发送</label>
                                </div>
                            </div>
	                        <div class="form-group">
                                <label class="col-lg-2 control-label">附件列表</label>

                                <div class="col-lg-10">
                                	<ul>
                                		<li ng-repeat="item in fileList"><a href="javascript:" ng-click="download(item)">{{item.fileName}}</a></li>
                                	</ul>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-2 control-label">备注</label>

                                <div class="col-lg-10">
                                    <textarea class="form-control" rows="3" ng-model="demand.remarks" maxlength='100'></textarea>
                                </div>
                            </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="toSubmit(demand)" ng-disabled="QR.$invalid">确认</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
	</form>
    <!-- /.modal-dialog -->
</div><!-- /.modal -->

<a id="downlink" target="_blank"></a>
<div ng-include="'templates/technologicalProcess/steps-extends.html'"></div>
<div ng-include="'templates/technologicalProcess/details-extends.html'"></div>